package com.tk.exam.mapper;

import com.tk.exam.domain.TkFile;
import com.tk.exam.domain.TkFileExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface TkFileMapper {
    int countByExample(TkFileExample example);

    int deleteByExample(TkFileExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TkFile record);

    int insertGeneratedKeys(TkFile record);

    int insertSelective(TkFile record);

    List<TkFile> selectByExampleWithRowbounds(TkFileExample example, RowBounds rowBounds);

    List<TkFile> selectByExample(TkFileExample example);

    TkFile selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TkFile record, @Param("example") TkFileExample example);

    int updateByExample(@Param("record") TkFile record, @Param("example") TkFileExample example);

    int updateByPrimaryKeySelective(TkFile record);

    int updateByPrimaryKey(TkFile record);

    int updateEntityId(@Param("entityId") int entityId, @Param("list") List fileIds);
}